const sq = require('../../db/mysql');
const fs = require('fs');

try {
    let files = fs.readdirSync(__dirname);
    for(let file of files){
        if(file != 'init.js') {
            sq.import('./' + file);
        }
    }
} catch (error) {
    console.log(error)
}
module.exports = () => {
    sq.sync();
}
